﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace SmartParking.Web
{
    public partial class Template : System.Web.UI.MasterPage
    {
        public String Title { set; get; }

        protected void Page_Load(object sender, EventArgs e)
        {
            //Title = "Template";
        }

        public TimeZoneInfo LocalTimeZone
        {
            get
            {
                return TimeZoneInfo.FindSystemTimeZoneById("Central America Standard Time");
            }
        }

        public string ActiveMenuItem
        {
            set
            {
                mnuHome.Attributes.Remove("class");
                mnuAbout.Attributes.Remove("class");
                mnuHow.Attributes.Remove("class");
                mnuReservations.Attributes.Remove("class");
                mnuFAQs.Attributes.Remove("class");
                mnuContactUs.Attributes.Remove("class");
                switch (value)
                {
                    case "Home":
                        mnuHome.Attributes.Add("class", "current_page_item");
                        break;
                    case "About":
                        mnuAbout.Attributes.Add("class", "current_page_item");
                        break;
                    case "How":
                        mnuHow.Attributes.Add("class", "current_page_item");
                        break;
                    case "Reservations":
                        mnuReservations.Attributes.Add("class", "current_page_item");
                        break;
                    case "FAQs":
                        mnuFAQs.Attributes.Add("class", "current_page_item");
                        break;
                    case "ContactUs":
                        mnuContactUs.Attributes.Add("class", "current_page_item");
                        break;
                }
            }
        }
    }
}